<?xml version="1.0" encoding="UTF-8"?>
<%@page contentType="text/xml" %>

<%@page import="java.util.Iterator"%>
<%@page import="java.util.List"%>
<% List l = (List)request.getAttribute("placeMyAdList");%>


<%@page import="com.serviceBeans.PlaceMyAd"%><persons>
<% Iterator it  = l.listIterator(); 
int count =0;
while(it.hasNext())
{
	++count;
	PlaceMyAd placeMyAd = (PlaceMyAd)it.next();
	System.out.println(placeMyAd.getIdplaceMyAd()+" : "+placeMyAd.getName() +" : "+ placeMyAd.getDescription()+" : "+placeMyAd.getPlacedDate());
	%>
	<person id="<%= placeMyAd.getIdplaceMyAd()%>">
		<id><%= placeMyAd.getIdplaceMyAd()%></id>
		<name><%= placeMyAd.getName()%></name>
		<adTitle><%= placeMyAd.getAdTitle()%></adTitle>
		<country><%= placeMyAd.getCountry()%></country>
		<placedDate><%= placeMyAd.getPlacedDate()%></placedDate>
		<gender><%= placeMyAd.getGender()%></gender>
		<contactNumber><%= placeMyAd.getContactNumber()%></contactNumber>
		<contactEmail><%= placeMyAd.getContactEmail()%></contactEmail>
		<description><%= placeMyAd.getDescription()%></description>
		<city><%= placeMyAd.getCity()%></city>
		<state><%= placeMyAd.getState()%></state>
	</person>
	<%	}	%>
</persons>